﻿namespace Bll.Stock
{
    using IDal.Stock;
    using Model.Stock;
    using System;
    using System.Data;
    using DALFactory;
    public class DamageReportedBll
    {
        private static readonly IDamageReported dal = DataAccess.CreateDamageReported();

        public static void Add(DamageReportedEnt model)
        {
            dal.Add(model);
        }

        public static void Delete(int ID)
        {
            dal.Delete(ID);
        }

        public static DataTable GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        public static int GetMaxId(string swhere)
        {
            return dal.GetMaxId(swhere);
        }

        public static DamageReportedEnt GetModel(int ID)
        {
            return dal.GetModel(ID);
        }

        public static DataTable GetPageList(int PageSize, int PageIndex, string strWhere)
        {
            return dal.GetPageList(PageSize, PageIndex, strWhere);
        }

        public static void Update(DamageReportedEnt model)
        {
            dal.Update(model);
        }
    }
}

